package com.feizhi.inventory.util;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Locale;


/**
 *  获取系统当前时间
 * */
public class Util {

    public Util() {

    }

    public static String getDate() {
        //获取系统的日期时间
        Calendar calendar = Calendar.getInstance();
        String strDateFormat = "yyyy-MM-dd";
        SimpleDateFormat sdf = new SimpleDateFormat(strDateFormat, Locale.ENGLISH);
        return sdf.format(calendar.getTime());
    }

}
